home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ User Settings General.xpl < prev    next >
Text File  |  2000-07-28  |  1KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="System\User Data"
  5. "NAME"="Windows User Data"
  6. "VERSION"="1.12"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Name"
  9. "TEXT 2"="Company"
  10. "DESCRIPTION 1"="While Windows has been installed on your computer, it has saved your name and the name of your company."
  11. "DESCRIPTION 2"="This information can be changed here."
  12. "DESCRIPTION 3"=""
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to Anthony Perez/Rivernet Communications [mailto:rivernet1@uswest.net] for his help!"
  18.  
  19. Sub Plugin_Initialize 
  20.  if RegPathExists("HKLM\Software\Microsoft\Windows\CurrentVersion") then
  21.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOwner")
  22.   SetUIElement 1,s
  23.  
  24.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOrganization")
  25.   SetUIElement 2,s
  26.  else 
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  s=GetUIElement(1)
  36.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOwner",s,1)
  37.  
  38.  s=GetUIElement(2)
  39.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOrganization",s,1)
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.  
  46.  
  47.  
  48.